/*******************************************************************************
 *  Copyright (c) 2020-2201 Yichen Science and Tecthnology Co., Ltd.
 *
 *  File   :    debuglog.h
 *  Author :    luomin
 *  E_mail :    luomin5417@qq.com
 *  Date   :    2021/10/28
 *  Desc   :    debug log header file.
 *
 *  History:
 *  Date                      Modifier                    Content
******************************************************************************/

#ifndef __DEBUG_LOG_H__
#define __DEBUG_LOG_H__

#include <stdio.h>
#include <stdarg.h>

#define LOG_ALL    0
#define LOG_DEBUG  1
#define LOG_INFO   2
#define LOG_WARN   3
#define LOG_ERROR  4
#define LOG_FATAL  5
#define LOG_OFF    6

#define DEBUG_LOG(level,format, args...) debug_log(level, __FUNCTION__, __LINE__, format, ##args)

void debug_log(int level, const char *func, int lines, char *format, ...);

#endif